
<template>
  <vHome v-if="loadCompeted" />
</template>
<script>
//开发测试使用
// import vHome from '@/views/v-home.vue';
import vHome from '@/views/project-expenses/index.vue';
// import vHome from '@/views/project-funds/index.vue';
export default {
  components: {
    vHome
  },
  data() {
    return {
      loadCompeted: false
    }
  },
  created() {
    window.eventService.onceEvent('rpc-ready', (e) => {
      console.log("握手成功12", e)
      // customFieldService.getRecord('')
      this.init()
    })
  },
  methods: {
    async init() {
      // 开发测试开启
      this.loadCompeted = true
      window.systemService.getServerUrl().then(url => {
        this.$store.commit('search/setUrl', url)
        this.loadCompeted = true
      });

    }

  }
}
</script>
